<!--界面展示窗口-->
<template>
  <div >
    <braek></braek>
    <!-- 卡片区域 -->
    <el-card>
      e
    </el-card>
  </div>
</template>
<!--业务逻辑-->
<script>
import braek from "../Bread.vue";
export default {
  components: {
    braek
  },
  data() {
    return {
      rightsList:[]
    };
  },
  //方法
  methods: {
    //获取权限列表
   async getRightlist(){
    const {data:res}=await this.$http.get("rights/list")
    if(res.meta.status!==200){
      return this.$messag.error("获取权限列表失败");
    }
    this.rightsList=res.data
    console.log( this.rightsList);
    }  
  },
  //创建
  created() {
       this.getRightlist()  
  }

};
</script>



<style lang="scss" scoped>
</style>